import request from '@/utils/request'

// 查询租房合同信息列表
export function listLeLeaseContract(query) {
  return request({
    url: '/lease/leLeaseContract/list',
    method: 'get',
    params: query
  })
}

// 查询租房合同信息详细
export function getLeLeaseContract(contractId) {
  return request({
    url: '/lease/leLeaseContract/' + contractId,
    method: 'get'
  })
}

// 新增租房合同信息
export function addLeLeaseContract(data) {
  return request({
    url: '/lease/leLeaseContract',
    method: 'post',
    data: data
  })
}

// 修改租房合同信息
export function updateLeLeaseContract(data) {
  return request({
    url: '/lease/leLeaseContract',
    method: 'put',
    data: data
  })
}

// 删除租房合同信息
export function delLeLeaseContract(contractId) {
  return request({
    url: '/lease/leLeaseContract/' + contractId,
    method: 'delete'
  })
}
